//
//  NRWLoginApi.m
//  NRWMall
//
//  Created by 邢毅 on 2018/6/14.
//  Copyright © 2018年 com.anpxd. All rights reserved.
//

#import "NRWLoginApi.h"

@implementation NRWLoginApi

- (NSString *)requestUrl {
    
    return [NSString stringWithFormat:@"%@%@", Api(), @"/controller/clientUser/login"];
}

- (YTKRequestMethod)requestMethod {
    
    return YTKRequestMethodPOST;
}

- (id)requestArgument {
    
    if (isNotEmptyString(self.userMobile) && isNotEmptyString(self.validateCode)) {
        return @{@"userMobile": self.userMobile, @"validateCode": self.validateCode};
    } else {
        return nil;
    }
}

@end
